var redisHelper = require('../helper/redisHelper');
// var async = require('async');

redisHelper = new redisHelper();

// process.on('uncaughtException', function(e) {
// 	console.log('uncatch: ' + e);
// });
// 

// step2
var push_Token = redisHelper.get('hl00000000-4df8-d963-3b64-93f651a1e20a_pushToken', function(error, reply) {
	if(error) { // !null
		console.log("error: " + error);
	}
	console.log('reply: ' + reply); // 5d0355d4-d9b0-4c62-afb3-3ccbf0fc582f@1400493224000
	console.log(push_Token); // undefined
	console.log(12);
});

// 控制流程
// async.series([
//     function(callback){
      
//     }
// ], function(err, results){ // optional callback
//     // results is now equal to ['one', 'two']
//     console.log(err);
//     console.log(results);
// });

// step1
console.log('message');


